Skip to content

docs: fill out and clean up Version page a little - #1089

Merged
henryiii merged 1 commit into
pypa:mainfrom
henryiii:henryiii/docs/version
Feb 12, 2026
Merged

henryiii merged 1 commit into
pypa:mainfrom
henryiii:henryiii/docs/version

Conversation

@henryiii

Copy link
Copy Markdown
Contributor

Working on the Version page a little:

  • Drop the __weakref__ display on packaging.version.InvalidVersion
  • Document from_parts, __replace__, __match_args__
  • Override the __replace__ signature to be more useful
  • Display the __replace__ parameters
  • Add versionchanged and versionadded
  • Trick sphinx into putting versionadded in the right place (at the end) of from_parts by including at least one :param ...
  • Mention fast path replacements for .public and .base_version
  • Mention that parse(...) is identical to Version(...)

@henryiii
henryiii force-pushed the henryiii/docs/version branch 4 times, most recently from 3e961d2 to 7ff90f7 Compare February 12, 2026 13:46
Signed-off-by: Henry Schreiner <henryfs@princeton.edu>
@henryiii
henryiii force-pushed the henryiii/docs/version branch from 7ff90f7 to a0bc9a1 Compare February 12, 2026 21:07
@henryiii
henryiii merged commit 2df7bdd into pypa:main Feb 12, 2026
44 checks passed
@henryiii
henryiii deleted the henryiii/docs/version branch February 12, 2026 21:13
This was referenced Apr 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants